<%@ page language="java"
	import="java.util.*,com.wechat.service.WechatService"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="json" uri="http://www.atg.com/taglibs/json"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>HIFO</title>
		<meta name="viewport"
			content="width=device-width, initial-scale=1, user-scalable=0">
		<link rel="stylesheet" href="css/style.css">
	</head>
	<body ontouchstart="">
		<div class="wxapi_container">
			<div class="wxapi_index_container">
				<ul class="label_box lbox_close wxapi_index_list">

					<li class="label_item wxapi_index_item">
						<a class="label_inner" href="#menu-location">地理位置接口</a>
					</li>

				</ul>
			</div>
			<div class="lbox_close wxapi_form">
				<h3 id="menu-basic">
					基础接口
				</h3>
				<span class="desc">判断当前客户端是否支持指定JS接口</span>
				<button class="btn btn_primary" id="checkJsApi">
					checkJsApi
				</button>


				<span class="desc">获取地理位置接口</span>
				<button class="btn btn_primary" id="getLocation">
					getLocation
				</button>
				
				<sapn></span>
			</div>
		</div>
	</body>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script>
	x.config({
		debug : true,
		appId : 'wx3c0d18351a1111ec',
		timestamp : 1450873919,
		nonceStr : 'abcdefg',
		signature : 'd6e277502b952b42ecd55adcd1860f6f42d86f95',
		jsApiList : [ 'checkJsApi', 'onMenuShareTimeline',
				'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo',
				'hideMenuItems', 'showMenuItems', 'hideAllNonBaseMenuItem',
				'showAllNonBaseMenuItem', 'translateVoice', 'startRecord',
				'stopRecord', 'onRecordEnd', 'playVoice', 'pauseVoice',
				'stopVoice', 'uploadVoice', 'downloadVoice', 'chooseImage',
				'previewImage', 'uploadImage', 'downloadImage',
				'getNetworkType', 'openLocation', 'getLocation',
				'hideOptionMenu', 'showOptionMenu', 'closeWindow',
				'scanQRCode', 'chooseWXPay', 'openProductSpecificView',
				'addCard', 'chooseCard', 'openCard' ]
	});
</script>
	<script src="js/gps.js">
	
</script>
</html>
